RC4 Encryption AlgorithmRC4 encryption algorithm is the number one in the famous RSA trio Ron Rivest designed a variable-length stream encryption algorithm cluster in 1987. It is called a cluster, because its core part of the S-box length can be arbitrary, but generally 256 bytes. The speed of the algorithm can reach about 10 times times of DES encryption, and it has a high level of nonlinearity. RC4 was or
Php implements the rc4 encryption algorithm code. Copy the code as follows: ** rc4 encryption algorithm * $ pwd Key * $ data the data to be encrypted * functionrc4 ($ pwd, $ data) $ pwd key $ data requires an encrypted string {$ key []; $ box [code
The
Code of rc4 encryption algorithm implemented by php
The code is as follows:
/*
* Rc4 encryption algorithm
* $ Pwd key
* $ Data the data to be encrypted
*/
Function rc4 ($ pwd, $ data) // $ pwd key $ data requires an encrypted string
{
$ Key [] = "";
$ Box [] = "";
The decryption method of this algorithm is to re-encrypt it once to restore it. if you need it, refer to the following code:
The code is as follows:
/*
* Rc4 encryption algorithm
* $ Pwd key
* $ Data the data to be encrypted
*/
Function rc4 ($ pwd, $ data) // $ pwd key $ data requires an encrypted string
{
The decryption method of this algorithm is to re-encrypt it once to restore it. if you need it, refer to the following code:
Copy codeThe code is as follows:
/*
* Rc4 encryption algorithm
* $ Pwd key
* $ Data the data to be encrypted
*/
Function rc4 ($ pwd, $ data) // $ pwd key $ data requires an encrypted str
The decryption method of this algorithm is to re-encrypt it once to restore it. if you need it, refer to the following code:
The code is as follows:
/** Rc4 encryption algorithm* $ Pwd key* $ Data the data to be encrypted*/Function rc4 ($ pwd, $ data) // $ pwd key $ data requires an encrypted string{$ Key [] = ""
Share a PHP RC4 encryption algorithm Instance code, this PHP encryption algorithm decryption method is re-encrypted once, it can also./** RC4 encryption Algorithm * $PWD key * $data data to be encrypted*/ functionRC4 ($pwd,$data)//$pwd key $data need to encrypt string{ $key[] =""; $box[] =""; $pwd _length=strlen($pwd); $data _length=strlen($data); for($i= 0;$i$i
(); Intent.setaction (Intent.action_call); Intent.setdata (Uri.parse ("Tel:" + "123123")); StartActivity (Intent); }}, "Demo"); String Url=new string ("http://192.168.61.173:8080/myweb/zp.html"); Loading Web pages into Web controls weB.loadurl (URL); } }3, the page inside the button to use the hyperlink, the method is as follows:Where the demo is the class name, callous is the method of the demo class, the front window is the tag, plus not so-called
Java Web code generator, which focuses on Java Web project general purpose code generator and Java Web Code Generator
This project is a general code generator for the javaWEB project. j
Java User Rights Management framework source code Java Rights Management Java source Code framework code, User function permissions control to menu and menu action buttonmyeclipse+jdk1.6+apache-tomcat-6.0.14+sql2005/2008/2012is a
Common Code blocks in Java. Construct code blocks. Differences between static code blocks and code examples. java examples.
Execution sequence: (the priority ranges from high to low .) Static
Java code generates QR code images and java code
Jar package to be used: QRCode. jar
Click here to download QRCode. jar.
Because the code is relatively simple. I don't have to worry about it. I simply post the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.